﻿using Shop.Core.Share;
using Shop.Model.Dto.Admin.NewProduct;
using Shop.Model.View.Admin.NewProduct;

namespace Shop.IServices.Admin;

public interface INewProductService
{
    /// <summary>
    /// 新品列表
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult<PageModel<NewProductListVo>> NewProductList(NewProductListDto dto);

    /// <summary>
    /// 新品详情
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult<NewProductInfoVo> NewProductInfo(long dto);

    /// <summary>
    /// 新品编辑
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult NewProductEdit(NewProductEditDto dto);

    /// <summary>
    /// 添加新品
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult NewProductAdd(NewProductAddDto dto);

    /// <summary>
    /// 激活新品
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult NewProductEnable(long dto);
}